package com.arpa.oms.domain.vo;

import com.arpa.wms.domain.entity.BasicEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * OMS销售单
 * </p>
 *
 * @author LEO
 * @since 2020-10-22
 */
@Data
@ApiModel(value = "OmsSale对象", description = "OMS销售单")
public class SaleVO extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "销售单号")
    private String code;

    @ApiModelProperty(value = "来源单号")
    private String sourceCode;

    @ApiModelProperty(value = "所属机构Code")
    private String groupCode;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentName;

    @ApiModelProperty(value = "销售类型 normal:普通销售")
    private String saleType;

    @ApiModelProperty(value = "客户")
    private String customerCode;

    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "订单数量（销售单位）")
    private BigDecimal planQuantity;

    @ApiModelProperty(value = "发货数量（销售单位）")
    private BigDecimal actualQuantity;

    @ApiModelProperty(value = "订单数量（基本单位）")
    private BigDecimal planBasicQuantity;

    @ApiModelProperty(value = "发货数量（基本单位）")
    private BigDecimal actualBasicQuantity;


    @ApiModelProperty(value = "付款金额")
    private BigDecimal paymentAmount;

    @ApiModelProperty(value = "已使用付款金额，用于批次生成付款明细时，计算已使用的付款金额数量")
    private BigDecimal usePaymentAmount;

    @ApiModelProperty(value = "欠款金额")
    private BigDecimal owedAmount;

    @ApiModelProperty(value = "状态：新增、作废、待审核、审核通过、审核未通过")
    private String status;

    @ApiModelProperty(value = "审核意见")
    @TableField("verify_opinion")
    private String verifyOpinion;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "结算金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "其他费用")
    private BigDecimal otherAmount;

    @ApiModelProperty(value = "店铺编码code")
    private String shopCode;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @ApiModelProperty(value = "承运商编码code")
    private String carrierCode;

    @ApiModelProperty(value = "承运商名称")
    private String carrierName;

    @ApiModelProperty(value = "买家姓名")
    private String buyerName;

    @ApiModelProperty(value = "买家电话")
    private String buyerMobile;

    @ApiModelProperty(value = "区域信息")
    private List<String> areaList;

    @ApiModelProperty(value = "国家")
    private String countryName;

    @ApiModelProperty(value = "省")
    private String provinceName;

    @ApiModelProperty(value = "市")
    private String cityName;

    @ApiModelProperty(value = "区县")
    private String countyName;

    @ApiModelProperty(value = "买家地址")
    private String buyerAddress;

    @ApiModelProperty(value = "拆单状态，0-未拆，1-已拆")
    private String unpackStatus;

    @ApiModelProperty(value = "合单号")
    private String mergeCode;

    @ApiModelProperty(value = "WMS返回信息")
    private String wmsMessage;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "销售明细")
    private List<SaleItemVO> saleItemList;

    @ApiModelProperty(value = "平台标识")
    private String platformCode;

    @ApiModelProperty(value = "平台名称")
    private String platformName;

    @ApiModelProperty(value = "快递单号（来自拼多多）")
    private String trackingNumber;

    @ApiModelProperty(value = "快递公司在拼多多的代码")
    private Long logisticsId;

    @ApiModelProperty(value = "买家留言")
    private String buyerMessage;

    @ApiModelProperty(value = "订单类型")
    private String orderType;

    @ApiModelProperty(value = "商城商家编码")
    private String eCustomerCode;

    @ApiModelProperty(value = "面单商家编码")
    private String ewCustomerCode;




}
